package com.seatwork;

/**
 * @desecr
 * @Author Haibian
 * @Time 2018/9/28
 **/
public class MainTest {
    public static void main(String[] args) throws NonExistsJobNumberException,
            IllegalSalaryException,
            IllegalAgeException,
            IllegaldentityCardNoException {
        Employee zhangSan = new Employee(1002,"张三",
                19,5000, "340829199812039563");
        Employee liSi =new Employee(1003,"李四",
                21,4500,"34200199708021923");
        Employee wangWu =new Employee(1004,"王五",
                22,7000,"340800199609071238");


        Employee zhaoLiu =new Employee();
       // zhaoLiu.setId();
        zhaoLiu.setName("张三");
        zhaoLiu.setSalary(5000);
        zhaoLiu.addSalary(2000);
        zhaoLiu.minusSalary(100);
        zhaoLiu.setAge(20);
        //zhaoLiu.setIdentityCardNo("3506");

        zhangSan.showSalary();
        liSi.showSalary();
        wangWu.showSalary();
        zhaoLiu.showSalary();
    }
}
